import request from "@/request";
import { AxiosResponse } from "axios";

export interface FormValue {
  oldPassword: string;
  newPassword: string;
  confirmPassword: string;
}

export const submitPassword = (data: any) => {
  return request({
    url: "/user/changePassword",
    method: "post",
    data,
  });
};
